import Mock from 'mockjs';
import homeApi from './mockServerData/home';
import orderApi from './mockServerData/order';
import loginApi from './mockServerData/login';
import goodsApi from './mockServerData/goods';

//login
Mock.mock('/login/verification','get',loginApi.userLogin);
//home
Mock.mock('/home/getData','get',homeApi.getStatisticalData);
//order
Mock.mock('/order/deleteData','delete',orderApi.deleteOrderData);
Mock.mock('/order/editData','post',orderApi.editOrderData);
Mock.mock('/order/addData','post',orderApi.addOrderData);
Mock.mock('/order/getData','get',orderApi.getOrderData);
Mock.mock('/order/searchData','get',orderApi.searchOrderData);
Mock.mock('/order/changeSort','get',orderApi.changeSort);
//goods
Mock.mock('/goods/getData','get',goodsApi.getGoodsData);
Mock.mock('/goods/editStock','post',goodsApi.editStock);